package mc.support.taobao.api;

import com.taobao.api.TaobaoRequest;
import com.taobao.api.request.ItemProcessPunishesSearchRequest;
import com.taobao.api.response.ItemProcessPunishesSearchResponse;

import java.util.Date;

/**
 * Created with IntelliJ IDEA. <br/>
 * Author: wangming    <br/>
 * Date: 2014-11-26  <br/>
 */
public class GetItemProcessPunishesReq extends AbstractReq<GetItemProcessPunishesReq, ItemProcessPunishesSearchResponse> {

    private Date gmtCreate;
    private Boolean mergeDetail;

    public GetItemProcessPunishesReq gmtCreate( Date gmtCreate ) {
        this.gmtCreate = gmtCreate;
        return this;
    }

    public GetItemProcessPunishesReq mergeDetail( Boolean mergeDetail ) {
        this.mergeDetail = mergeDetail;
        return this;
    }

    @Override
    protected TaobaoRequest toRequest() {
        ItemProcessPunishesSearchRequest req = new ItemProcessPunishesSearchRequest();
        if ( null != gmtCreate ) {
            req.setGmtCreate( gmtCreate );
        }
        if ( null != mergeDetail ) {
            req.setMergeDetail( mergeDetail );
        }
        return req;
    }
}
